package org.jks.model;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import com.google.gson.annotations.Expose;

@Entity
@Table(name = "AssessAttachment")
public class AssessAttachment implements Serializable {
	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue(generator = "increment")
	@GenericGenerator(name = "increment", strategy = "increment")
	@Expose
	private long Id;

	@ManyToOne
	@JoinColumn(name = "User", referencedColumnName = "Id", nullable = false)
	@Expose
	private User User;

	@ManyToOne
	@JoinColumn(name = "attachment", referencedColumnName = "Id", nullable = false)
	@Expose
	private Attachment attachment;

	public long getId() {
		return Id;
	}

	public void setId(long id) {
		Id = id;
	}

	public Attachment getAttachment() {
		return attachment;
	}

	public void setAttachment(Attachment attachment) {
		this.attachment = attachment;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public User getUser() {
		return User;
	}

	public void setUser(User user) {
		User = user;
	}
}
